package com.qianxun.watchdog;

/**
 * @author: huwei
 * @date: 2020/10/19 13:54
 * @version: 1.0.0
 */
public class PortSelector {
    private static int max = 21500;

    private static int current = 20259;

    public static synchronized int next(){
        if(current < max){
            return current++;
        }
        return -1;
    }
}
